#include "mywatch.h"

MyWatch::MyWatch(QObject *parent) :
    QThread(parent)
{
    fd = ::open("/dev/watchdog",O_WRONLY);
    if(fd < 0)
    {
       qDebug()<<"open watchdog erroe";
    }
}


void MyWatch::run()
{
    int dummy;
    ::ioctl(fd,WDIOC_KEEPALIVE,&dummy);
}
